<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>医生团队管理</title>
  <link rel="stylesheet" href="./../bootstrap/css/bootstrap.css">
  <style>
    .user-head-photo {
      width: 100px;
      height: 100px;
    }
  </style>
</head>

<body>
  <div class="container-fluid box-height">
    <div class="row header-h  border-light d-flex align-content-center shadow-lg bg-header">
      <div class="col-sm-2 col-lg-2 text-light">
        <i class="fa fa-user text-success size-24"></i>
        <span id="usernickname" class="mx-2">wqw</span>，欢迎您。
      </div>
      <div class="col-sm-7 col-lg-7 text-center">
        <span class="text-success font-weight-bold size-20">成都市龙泉驿区北泉路社区社区医院家庭医生签约服务平台</span>
      </div>
      <div class="col-sm-3 col-lg-3 text-right">
        <a type="button" class="btn btn-link text-light" href="./user_info.html">
          <i class="fa fa-user-circle-o text-primary"></i>
          <span>账户设置</span>
        </a>
        <button type="button" class="btn btn-link text-light" id="exitSystem">
          <i class="fa fa-sign-out text-warning"></i>
          <span>退出系统</span>
        </button>
      </div>
    </div>
    <div class="row menu-height">
      <div class="col-lg-2 px-0">
        <ul class="menu box-height bg-menu">
          <li>
            <div class="px-4 bg-menu">
              <a href="./main.html" class="btn-link">
                <i class="fa fa-tachometer pr-2"></i>
                <span>工作台</span></a>
            </div>
          </li>
          <li>
            <div class="px-4">
              <span>
                <i class="fa fa-cogs pr-2"></i>
                <span>权限管理</span>
              </span>
              <i class="fa fa-angle-down"></i>
            </div>
            <div class="text-center">
              <a href="./accesslist.html" class="btn-link">权限管理</a>
            </div>
            <div class="text-center">
              <a href="./rolelist.html" class="btn-link">角色管理</a>
            </div>
            <div class="text-center">
              <a href="./userlist.html" class="btn-link">用户管理</a>
            </div>
          </li>
          <li>
            <div class="px-4">
              <span>
                <i class="fa fa-object-group pr-2"></i>
                <span>医生团队管理</span>
              </span>
              <i class="fa fa-angle-down"></i>
            </div>
            <div class="text-center">
              <a href="./doctor_team_management.html" class="btn-link">家庭医生团队管理</a>
            </div>
            <div class="text-center">
              <a href="./doctors_management.html" class="btn-link">家庭医生管理</a>
            </div>
            <div class="text-center">
              <a href="./doctors_job.html" class="btn-link">医生职称管理</a>
            </div>
          </li>

          <li>
            <div class="px-4">
              <span>
                <i class="fa fa-table pr-2"></i>
                <span>签约管理</span>
              </span>
              <i class="fa fa-angle-down"></i>
            </div>
            <div class="text-center">
              <a href="./serivce_pack.html" class="btn-link">健康服务包管理</a>
            </div>
            <div class="text-center">
              <a href="./person_types.html" class="btn-link">居民类别管理</a>
            </div>
            <div class="text-center">
              <a href="./contract_management.html" class="btn-link">签约居民列表</a>
            </div>
          </li>
          <li>
            <div class="px-4">
              <span>
                <i class="fa fa-database pr-2"></i>
                <span>统计分析</span>
              </span>
              <i class="fa fa-angle-down"></i>
            </div>
            <div class="text-center">
              <a href="./statistic_table.html" class="btn-link">统计表</a>
            </div>
            <div class="text-center">
              <a href="./statistic_charts.html" class="btn-link">统计图</a>
            </div>
          </li>
        </ul>
      </div>
      <div class="col-lg-10 bg-white">
        <!-- 面包屑导航  -->
        <div class="row">
          <div class="col  px-0">
            <nav aria-label="breadcrumb">
              <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="" class="text-success">医生团队管理</a></li>
                <li class="breadcrumb-item active" aria-current="page">医生团队列表</li>
              </ol>
            </nav>
          </div>
        </div>
        <!-- title -->
        <div class="row">
          <div class="col">
            <h5 class="border-bottom mb-3 pb-2 pl-2 title-border">家庭医生团队列表</h5>
          </div>
        </div>
        <!-- 搜索栏 -->
        <div class="row bg-light py-3 justify-content-between">
          <div class="col-10">
            <form class="form-inline">
              <button type="button" id="addTeamBtn" class="btn btn-success mr-2"><i
                  class="fa fa-plus-circle text-warning"></i><span>
                  添加团队</span></button>
              <label for="searchTeam" class="mr-2 text-muted">团队名称:</label>
              <input type="search" class="form-control mr-2" id="searchTeam" placeholder="请输入团队名称">
              <label for="searchDoctorManage" class="mr-2 text-muted">负责医生:</label>
              <input type="search" class="form-control mr-2" id="searchDoctorManage" placeholder="请输入团队名称">
              <button type="button" class="btn btn-primary mr-2" id="serchBtn"><i
                  class="fa fa-search text-warning mr-2"></i><span>查询</span></button>
            </form>
          </div>
          <div class="col-2 text-right">
            <button type="button" class="btn btn-warning"><i class="fa fa-refresh text-light"></i></button>
          </div>
        </div>
        <!-- 表格展示 -->
        <div class="row mt-3 rounded-lg bg-light pt-3">
          <div class="col">
            <table class="table table-bordered table-hover">
              <thead class="thead-light">
                <tr>
                  <th width="50">
                    <input type="checkbox">
                  </th>
                  <th scope="col" width="300">团队名称</th>
                  <th scope="col" width="200">负责医生</th>
                  <th scope="col">团队成员</th>
                  <th scope="col" width="300">操作</th>
                </tr>
              </thead>
              <tbody id="teamTbody">
                <!-- <tr>
                  <td>
                    <input type="checkbox">
                  </td>
                  <td>天字1号</td>
                  <td>张三疯</td>
                  <td>
                    张三，李四，王二
                  </td>
                  <td>
                    <a href="./modify_team.html" type="button" class="btn btn-link text-info">修改</a>
                    <button type="button" class="btn btn-link text-danger">删除</button>
                  </td>
                </tr> -->

              </tbody>
            </table>
          </div>
        </div>
        <!-- 分页 -->
        <div class="row mt-3 rounded-lg pt-3 bg-light">
          <div class="col px-0">
            <nav aria-label="Page navigation">
              <ul class="pagination justify-content-end pr-3" id="mypage">
                <!-- <li class="page-item disabled">
                  <a class="page-link">Previous</a>
                </li> -->
                <!-- <li class="page-item"><a class="page-link" href="#">1</a></li>
                <li class="page-item"><a class="page-link" href="#">2</a></li>
                <li class="page-item"><a class="page-link" href="#">3</a></li> -->
                <!-- <li class="page-item">
                  <a class="page-link" href="#">Next</a>
                </li> -->
              </ul>
            </nav>
          </div>
        </div>

        <!-- 添加团队 -->
        <div class="modal" tabindex="-1" id="addTeamModal">
          <div class="modal-dialog modal-xl">
            <div class="modal-content">
              <div class="modal-header">
                <h5 class="modal-title">添加团队</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                  <span aria-hidden="true">&times;</span>
                </button>
              </div>
              <div class="modal-body">
                <form>
                  <div class="form-group row">
                    <label for="teamname" class="col-md-2 col-sm-3 col-form-label">家庭医生团队名称:</label>
                    <div class="col-md-4 col-sm-5">
                      <input type="text" class="form-control" id="teamname" aria-describedby="teamnameHelp">
                    </div>
                    <div class="col-md-2 col-sm-4">
                      <small id="teamnameHelp" class="form-text text-muted mt-3">最多20个字符</small div>
                    </div>
                  </div>

                  <div class="form-group row">
                    <label for="info" class="col-md-2 col-sm-3 col-form-label">家庭医生团队介绍：</label>
                    <div class="col-md-4 col-sm-5">
                      <textarea class="form-control" id="info"></textarea>
                    </div>
                    <div class="col-md-2 col-sm-4">
                      <small id="passwordHelp" class="form-text text-muted mt-3">任意6位字符</small>
                    </div>
                  </div>

                  <div class="form-group row">
                    <label for="sid" class="col-md-2 col-sm-3 col-form-label">头像</label>
                    <div class="col-md-4 col-sm-5">
                      <input type="file" class="custom-file-input" id="customFile">
                      <label class="custom-file-label mx-3" for="customFile">Choose file</label>
                    </div>
                    <div class="col-md-2 col-sm-4">
                      <small id="photoHelp" class="form-text text-muted mt-3">选择图片，修改头像</small>
                    </div>
                  </div>
                  <div class="row">
                    <div class="col-9 offset-2">
                      <img class="user-head-photo" src="./../img/userdefault.jpeg" alt="">
                    </div>
                  </div>

                  <div class="form-group row">
                    <label for="teamItems" class="col-md-2 col-sm-3 col-form-label">医生列表:</label>
                    <div class="form-group col-md-4  col-sm-5">
                      <select name="teamItems" id="teamItems" class="custom-select">
                        <option value="0" disabled selected> 请选择医生</option>
                        <option value="1">元方</option>
                        <option value="2">武则天</option>
                        <option value="3">张无忌</option>
                        <option value="4">李四</option>
                        <option value="5">张三</option>
                      </select>
                    </div>
                    <div class="form-group col-md-2  col-sm-4">
                      <button type="button" id="addDoctorToTeamBtn" class="btn btn-primary"><i
                          class="fa fa-plus text-warning mr-2"></i>添加</button>
                    </div>
                  </div>
                </form>
                <div class="col-12 pl-5">
                  <table class="table table-bordered px-5">
                    <thead>
                      <th>医生姓名</th>
                      <th>负责人</th>
                      <th>性别</th>
                      <th>身份证</th>
                      <th>手机号码</th>
                      <th>职称</th>
                      <th>操作</th>
                    </thead>
                    <tbody id="addTeamTbody">
                      <tr data-id="1">
                        <td>王二</td>
                        <td>
                          <div class="custom-control custom-switch">
                            <input type="checkbox" class="custom-control-input" id="customSwitch1">
                            <label class="custom-control-label" for="customSwitch1">否</label>
                          </div>
                        </td>
                        <td>男</td>
                        <td>130001198900010001</td>
                        <td>18600010001</td>
                        <td>主治医生</td>
                        <td>
                          <button type="button" class="btn btn-link text-danger">删除</button>
                        </td>
                      </tr>
                    </tbody>
                  </table>

                </div>
              </div>
              <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">返回</button>
                <button type="button" class="btn btn-primary btn-add">创建</button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>

  </div>

  <script src="./../jquery/jquery 3.6.4.js"></script>
  <script src="./../bootstrap/js/bootstrap.bundle.js"></script>
  <script src="./../js/doctor_team_management.js"></script>

</body>

</html>